import { createRouter, createWebHashHistory } from 'vue-router'

const routes = [
    {
        path: '/',
        redirect: '/courseInfo'
    },
    {
        path: '/courseInfo',
        name: 'CourseInfo',
        component: () => import('../views/CourseInfo')
    },
    {
        path: '/homePage',
        name: 'HomePage',
        component: () => import('../views/HomePage')
    },
    {
        path: '/helloWorld',
        name: 'HelloWorld',
        component: () => import('../views/HelloWorld')
    },
    {
        path: '/video',
        name: 'Video',
        component: () => import('../views/Video')
    }

]

const router = createRouter({
    history: createWebHashHistory(process.env.BASE_URL),
    routes
})

export default router
